<%--
  Created by IntelliJ IDEA.
  User: 陈林
  Date: 2020/2/1
  Time: 11:19
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=utf-8" isELIgnored="false" pageEncoding="utf-8"%>
<%@ include file="/webpage/common/include/taglib.jsp"%>
<html>
<head>
    <meta charset="utf-8">
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <!--[if lt IE 9]>
    <%@ include file="/webpage/common/include/ltie9.jsp"%>
     <%@ include file="/webpage/common/include/ltie6.jsp"%>
    <!--<script type="text/javascript" src="/resources/lib/html5shiv.js"></script>-->
    <!--<script type="text/javascript" src="/resources/lib/respond.min.js"></script>-->
    <![endif]-->
    <%--<link href="/resources/static/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />--%>
    <link href="${ctxStatic}/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
    <link href="${ctxStatic}/h-ui.admin/css/style.css" rel="stylesheet" type="text/css" />
    <%--<link href="/resources/lib/Hui-iconfont/1.0.8/iconfont.css" rel="stylesheet" type="text/css" />--%>
    <%@include file="/webpage/common/include/head.jsp"%>
    <!--[if IE 6]>
    <script type="text/javascript" src="{ctxLib}/DD_belatedPNG_0.0.8a-min.js" ></script>
    <!--<script>DD_belatedPNG.fix('*');</script>-->
    <![endif]-->
    <title>天然气后台登录</title>
    <meta name="keywords" content="">
    <meta name="description" content="">
</head>
<body>
<input type="hidden" id="TenantId" name="TenantId" value="" />
<div class="header"></div>
<div class="loginWraper">
    <div id="loginform" class="loginBox">
        <form class="form form-horizontal" action="/login/weblogin/users" method="post">
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60d;</i></label>
                <div class="formControls col-xs-8">
                    <input id="userName" name="userCode" value="12345678900" type="text" placeholder="账号" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <label class="form-label col-xs-3"><i class="Hui-iconfont">&#xe60e;</i></label>
                <div class="formControls col-xs-8">
                    <input id="userPwd" name="userPwd" value="12345" type="password" placeholder="密码" class="input-text size-L">
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="verifyCode" class="input-text size-L" type="text" placeholder="验证码" onblur="if(this.value==''){this.value='验证码:'}" onclick="if(this.value=='验证码:'){this.value='';}" value="" style="width:150px;" >
                    <img id="verifycodeId" src="/login/weblogin/verifyCode?height=41&width=100&lineSize=10&fontSize=28"> <a id="kanbuq" class="verifyCodeClass" href="javascript:;">看不清，换一张</a> </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <label for="online">
                        <input type="checkbox" name="online" id="online" value="">
                        使我保持登录状态</label>
                </div>
            </div>
            <div class="row cl">
                <div class="formControls col-xs-8 col-xs-offset-3">
                    <input name="" type="submit" class="btn btn-success radius size-L" value="&nbsp;登&nbsp;&nbsp;&nbsp;&nbsp;录&nbsp;">
                    <input name="" type="reset" class="btn btn-default radius size-L" value="&nbsp;取&nbsp;&nbsp;&nbsp;&nbsp;消&nbsp;">
                </div>
            </div>
            <%--添加注册模块--%>
            <div class="row cl">
                <div class="formControls col-xs-8 col-offset-8">
                    <a class='btn   btn-sm btn-link' href="#">注册</a>
                    <a class='btn  btn-sm btn-link' href="#" >忘记密码？</a>
                </div>
                <%--<div class="formControls col-xs-4 col-offset-3">--%>
                <%--</div>--%>

            </div>

        </form>
    </div>
</div>
<div class="footer">天然气管理系统</div>
<script type="text/javascript" src="${ctxLib}/jquery/1.9.1/jquery.min.js"></script>
<script type="text/javascript" src="${ctxStatic}/h-ui/js/H-ui.min.js"></script>
<script type="text/javascript" src="${ctxLib}/layer/2.4/layer.js"></script>
<link href="${ctxLib}/layer/2.4/skin/layer.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript">
    $(".verifyCodeClass").click(function (){
        //验证码刷新
        $("#verifycodeId")[0].src="/login/weblogin/verifyCode?height=41&width=100&lineSize=10&fontSize=28&time="+Math.random();
    });

    // window.location.href：设置或获取整个 URL 为字符串
    // window.location.pathname：设置或获取对象指定的文件名或路径
    // window.location.search：设置或获取 href 属性中跟在问号后面的部分
    var urlParam = window.location.search;
    var url = window.location.href;
    var loc = urlParam.substring(urlParam.lastIndexOf('=')+1, urlParam.length);
    // function getQueryString(name) {
    //     var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)", "i");
    //     var r = window.location.search.substr(1).match(reg);
    //     if (r != null) return decodeURI(r[2]); return null;
    // }
    var msg = "";
    msg  = decodeURI(loc);
    if(url.indexOf("?") != -1){
        url = url.split("?")[0];
    }
    if(msg != ""){
        layer.alert(msg,{icon:1},function () {
            window.location.href =url;
        });
    }

</script>

